package org.csu.jpetstore_cms.service.impl;

import org.csu.jpetstore_cms.mapper.UserMapper;
import org.csu.jpetstore_cms.pojo.Account;
import org.csu.jpetstore_cms.pojo.User;
import org.csu.jpetstore_cms.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByID(String id) {
        return userMapper.findByID(id);
    }

    @Override
    public User findByUsername(String username) {
        return userMapper.findByUsername(username);
    }

    @Override
    public void insertUser(User user) { userMapper.insertUser(user);}

}
